/* 
   Hex-Reinforced Design System
   Core Variables & Global Styles
*/

:root {
  /* Primary */
  --hex-blue: #3b82f6;
  --hex-glow: rgba(59, 130, 246, 0.5);

  /* Backgrounds */
  --dark-bg: #0f172a;
  --panel-bg: rgba(17, 24, 39, 0.7);
  --panel-bg-solid: #111827;

  /* Borders & Dividers */
  --border-color: #374151;
  --border-light: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Accent Colors */
  --accent-green: #10b981;
  /* Positive, online, success */
  --accent-red: #ef4444;
  /* Negative, error, offline */
  --accent-orange: #f59e0b;
  /* Warning, attention */
  --accent-purple: #8b5cf6;
  /* Alternate highlight */
  --accent-cyan: #06b6d4;
  /* Info, secondary action */
  --accent-pink: #ec4899;
  /* Tertiary accent */

  /* Fonts */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
}

/* Global Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;

  /* Grid Background Pattern */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

/* Typography Classes */
.heading-xl {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.heading-lg {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.heading-md {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.heading-sm {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.body-md {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.body-sm {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.body-xs {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.data-xl {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
}

.data-lg {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
}

.data-md {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}

.data-sm {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}

/* Utility Classes */
.text-main {
  color: var(--text-main);
}

.text-muted {
  color: var(--text-muted);
}

.text-dim {
  color: var(--text-dim);
}

.text-blue {
  color: var(--hex-blue);
}

.text-green {
  color: var(--accent-green);
}

.text-red {
  color: var(--accent-red);
}

.text-orange {
  color: var(--accent-orange);
}

.font-mono {
  font-family: var(--font-mono);
}

.uppercase {
  text-transform: uppercase;
}

/* Hex Mesh Overlay */
.hex-mesh {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='34' viewBox='0 0 20 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0l10 5.77v11.55L10 23.1 0 17.32V5.77L10 0zm0 34l-10-5.77V16.68l10 5.77 10-5.77v11.55L10 34z' fill='%233b82f6' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--hex-blue);
  outline-offset: 4px;
}